﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BOMS.Model
{
    /// <summary>
    /// 电池主键
    /// </summary>
    public struct BatteryKey
    {
         public int Generation ;
         public string EquipID;
         public string BatteryGrp;
         public int BatteryID;
    }
    /// <summary>
    /// 数据分析参数
    /// </summary>
    public struct AnalyParam
    {
        public  DateTime  dtmBegin ;
        public DateTime dtmEnd;
        //间隔（秒）
        public int interv;//--间隔多少秒
        /// <summary>
        /// 最多横轴显示多少条
        /// </summary>
        public int pageSize ;//--
        /// <summary>
        /// 当前第几页
        /// </summary>
        public int curPage;       
}
    public class BatteryAnaly
    {
        DateTime _Time;
        decimal _Vval;
        decimal _Ival;
        decimal _Rval;
        decimal _Tval;
        decimal _CapFree;
        long _LogID;
        /// <summary>
        /// 时间点
        /// </summary>
        public DateTime Time
        {
            get { return _Time; }
            set { _Time = value; }
        }
        /// <summary>
        /// 电压
        /// </summary>
        public decimal Vval
        {
            get { return _Vval; }
            set { _Vval = value; }
        }
        /// <summary>
        /// 电流
        /// </summary>
        public decimal Ival
        {
            get { return _Ival; }
            set { _Ival = value; }
        }
        /// <summary>
        /// 内阻
        /// </summary>
        public decimal Rval
        {
            get { return _Rval; }
            set { _Rval = value; }
        }
        /// <summary>
        /// 温度
        /// </summary>
        public decimal Tval
        {
            get { return _Tval; }
            set { _Tval = value; }
        }
        /// <summary>
        /// 平均电压
        /// </summary>
        public decimal CapFree
        {
            get { return _CapFree; }
            set { _CapFree = value; }
        }
        /// <summary>
        /// 日志ID
        /// </summary>
        public long LogID
        {
            get { return _LogID; }
            set { _LogID = value; }
        }

    }
}
